Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-Identification Model #141

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open

Re-Identification Model #141

wants to merge 16 commits into from

Conversation

CaptainTrojan
Copy link
Contributor

Original CU Task

Added the GFNv2 backbone for use in re-ID tasks. Added integration with pytorch-metric-learning for ~30 loss functions (customizable) and two custom reID/embedding metrics. Implemented a test to verify trainability, exportability and inference.

…earning (loss). Added custom reID/embedding metrics. Implemented a test to verify trainability, exportability and inference.

Removed GhostFaceNetsV2 from the backbone tests as it only generates embeddings instead of the usual features.
@CaptainTrojan CaptainTrojan requested a review from a team as a code owner December 6, 2024 18:31
@CaptainTrojan CaptainTrojan requested review from kozlov721, klemen1999, tersekmatija and conorsim and removed request for a team December 6, 2024 18:31
@github-actions github-actions bot added the enhancement New feature or request label Dec 6, 2024
Copy link

codecov bot commented Dec 6, 2024

Codecov Report

Attention: Patch coverage is 99.77778% with 1 line in your changes missing coverage. Please review.

Project coverage is 95.31%. Comparing base (631b905) to head (a356093).
Report is 25 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
luxonis_train/nodes/backbones/micronet/blocks.py 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #141      +/-   ##
==========================================
- Coverage   96.31%   95.31%   -1.01%     
==========================================
  Files         147      178      +31     
  Lines        6304     7956    +1652     
==========================================
+ Hits         6072     7583    +1511     
- Misses        232      373     +141     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kozlov721 kozlov721 changed the title Feat/reid support Re-Identification Model Dec 9, 2024
Copy link
Collaborator

@klemen1999 klemen1999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, left some comments

luxonis_train/attached_modules/losses/__init__.py Outdated Show resolved Hide resolved
luxonis_train/attached_modules/losses/pml_loss.py Outdated Show resolved Hide resolved
luxonis_train/attached_modules/losses/pml_loss.py Outdated Show resolved Hide resolved
luxonis_train/attached_modules/losses/pml_loss.py Outdated Show resolved Hide resolved
luxonis_train/attached_modules/losses/pml_loss.py Outdated Show resolved Hide resolved
luxonis_train/attached_modules/losses/pml_loss.py Outdated Show resolved Hide resolved
luxonis_train/loaders/utils.py Show resolved Hide resolved
luxonis_train/nodes/backbones/ghostfacenet.py Outdated Show resolved Hide resolved
luxonis_train/nodes/backbones/ghostfacenet.py Outdated Show resolved Hide resolved
luxonis_train/attached_modules/losses/pml_loss.py Outdated Show resolved Hide resolved
luxonis_train/attached_modules/losses/pml_loss.py Outdated Show resolved Hide resolved
luxonis_train/attached_modules/losses/pml_loss.py Outdated Show resolved Hide resolved
luxonis_train/attached_modules/losses/pml_loss.py Outdated Show resolved Hide resolved
luxonis_train/attached_modules/losses/pml_loss.py Outdated Show resolved Hide resolved
luxonis_train/nodes/backbones/ghostfacenet.py Outdated Show resolved Hide resolved
luxonis_train/nodes/backbones/ghostfacenet.py Outdated Show resolved Hide resolved
luxonis_train/nodes/backbones/ghostfacenet.py Outdated Show resolved Hide resolved
luxonis_train/nodes/backbones/ghostfacenet.py Outdated Show resolved Hide resolved
luxonis_train/nodes/backbones/ghostfacenet.py Outdated Show resolved Hide resolved
@CaptainTrojan
Copy link
Contributor Author

Thanks very much everyone for the review and suggestions. Incorporated everything in, except for the new luxonis-ml nested label changes, as that should probably be done in a different PR. Thoughts?

@CaptainTrojan
Copy link
Contributor Author

Locally, I'm getting

(luxonis) captaintrojan@cpt-debian-PC:~/Projects/luxonis-train$ pre-commit run --show-diff-on-failure --color=always --all-files
ruff.....................................................................Passed
ruff-format..............................................................Passed
docformatter.............................................................Passed
mdformat.................................................................Passed

Could it be that I have a wrong version of mdformat?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants